import { Component, OnInit } from '@angular/core';
import { Router,NavigationExtras } from '@angular/router';
@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.less']
})
export class HomeComponent implements OnInit {

  gridStyle = {
    textAlign: 'center'
  };
  constructor(
    private router: Router,
  ) { }

  ngOnInit(): void {
  }
  goRentalOptions(){
    console.log('11');
    this.router.navigate(['/rental-options']);
  }
  goPersonalData(){
    this.router.navigate(['/personal-center/personal-data']);
  }
  goRentManagement(){
    this.router.navigate(['/personal-center/message-notification']);
  }
  goRentCollection(){
    this.router.navigate(['/personal-center/rent-collection']);
  }
  // 搜索值
  SearchMsg:string=''
  // 搜索
  goSearsh(){
    let navigationExtras:NavigationExtras = {
      queryParams:{'SearchMsg':this.SearchMsg}
    }
    this.router.navigate(['/rental-options'],navigationExtras);
  }
}
